package e2q.portal.domain.uPortal;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import org.hibernate.annotations.GenericGenerator;

import e2q.web.orm.Persistent;

/**
 * UpGroup entity.
 * 
 * @author MyEclipse Persistence Tools
 */

@Entity
@Table(name = "up_group")
@org.hibernate.annotations.Entity(dynamicUpdate = true, dynamicInsert = true)
public class UpGroup extends Persistent {

	// private Department department;
	@Transient
	private Long id;
	@Id
	@GeneratedValue(generator = "pk")
	@Column(name = "GROUP_ID")
	@GenericGenerator(name = "pk", strategy = "e2q.web.orm.IdGenerator")
	private String groupId;
	@Column(name = "CREATOR_ID")
	private String creatorId;
	@Column(name = "ENTITY_TYPE_ID")
	private Integer entityTypeId;
	@Column(name = "GROUP_NAME")
	private String groupName;
	@Column(name = "DESCRIPTION")
	private String description;

	// Constructors

	/** default constructor */
	public UpGroup() {
	}

	/** minimal constructor */
	public UpGroup(String groupId, String creatorId, Integer entityTypeId,
			String groupName) {
		this.groupId = groupId;
		this.creatorId = creatorId;
		this.entityTypeId = entityTypeId;
		this.groupName = groupName;
	}

	/** full constructor */
	public UpGroup(String groupId, String creatorId, Integer entityTypeId,
			String groupName, String description) {
		this.groupId = groupId;
		this.creatorId = creatorId;
		this.entityTypeId = entityTypeId;
		this.groupName = groupName;
		this.description = description;
	}

	// Property accessors

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getGroupId() {
		return this.groupId;
	}

	public void setGroupId(String groupId) {
		this.groupId = groupId;
	}

	public String getCreatorId() {
		return this.creatorId;
	}

	public void setCreatorId(String creatorId) {
		this.creatorId = creatorId;
	}

	public Integer getEntityTypeId() {
		return this.entityTypeId;
	}

	public void setEntityTypeId(Integer entityTypeId) {
		this.entityTypeId = entityTypeId;
	}

	public String getGroupName() {
		return this.groupName;
	}

	public void setGroupName(String groupName) {
		this.groupName = groupName;
	}

	public String getDescription() {
		return this.description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

}